package asia.yuanding.wechat.system.exception;

import lombok.Data;

/**
 * @ClassName: bussinesException
 * @Author: YuanDing
 * @Date: 2025/7/27 9:17
 * @Description:
 */

@Data
public class BusinessException extends Exception{

    int code;
    String msg;

    public BusinessException(int code , String message) {
        super(message);
        this.code = code;
        this.msg = message;
    }

    public BusinessException(String message) {
        super(message);
        this.code = 500;
        this.msg = message;
    }
}
